package com.nf.db.handlers.map;

import java.sql.ResultSet;
import java.sql.SQLException;

import static com.nf.db.handlers.RowProcessor.DEFAULT_ROWPROCESSOR;

/*
 * 让ResultSetHandler处理结果集，并将结果集转换为map<Object, Object[]>
 * */
public class ArrayMapHandler extends AbstractMapHandler<Object[]> {

    @Override
    protected Object[] getValue(ResultSet rs) throws SQLException {
        return DEFAULT_ROWPROCESSOR.toArray(rs);
    }
}
